﻿
/// <summary>
/// Represents a NumberPlate Object
/// made by group 9
/// </summary>

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace KentekenHerkenning
{
    public class NumberPlate
    {
        private Point _ul, _ur, _ll, _lr;
        private String _dc;

        /// <summary>
        /// The coordinates of the upper left corner of the number plate.
        /// </summary>
        public Point UpperLeft
        {
            get
            {
                return _ul;
            }
        }

        /// <summary>
        /// The coordinates of the upper right corner of the number plate.
        /// </summary>
        public Point UpperRight
        {
            get
            {
                return _ur;
            }
        }

        /// <summary>
        /// The coordinates of the lower left corner of the number plate.
        /// </summary>
        public Point LowerLeft
        {
            get
            {
                return _ll;
            }
        }

        /// <summary>
        /// The coordinates of the lower right corner of the number plate.
        /// </summary>
        public Point LowerRight
        {
            get
            {
                return _lr;
            }
        }

        /// <summary>
        /// The characters that have been detected in this number plate.
        /// </summary>
        public String DetectedCharacters
        {
            get
            {
                return _dc;
            }
            set
            {
                _dc = value;
            }
        }

        public NumberPlate(Point upperLeftCoordinates, Point upperRightCoordinates, Point lowerLeftCoordinates, Point lowerRightCoordinates)
        {
            //Console.WriteLine("UL: " + upperLeftCoordinates.X + "," + upperLeftCoordinates.Y + " UR: " + upperRightCoordinates.X + "," + upperRightCoordinates.Y + " LL: " + lowerLeftCoordinates.X + "," + lowerLeftCoordinates.Y + " LR: " + lowerRightCoordinates.X + "," + lowerRightCoordinates.Y);
            _ul = upperLeftCoordinates;
            _ur = upperRightCoordinates;
            _ll = lowerLeftCoordinates;
            _lr = lowerRightCoordinates;
        }
        public NumberPlate(Point upperLeftCoordinates, Point upperRightCoordinates, Point lowerLeftCoordinates, Point lowerRightCoordinates, String detectedCharacters)
        {
            _ul = upperLeftCoordinates;
            _ur = upperRightCoordinates;
            _ll = lowerLeftCoordinates;
            _lr = lowerRightCoordinates;
            _dc = detectedCharacters;
        }

    }
}
